﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using StuMngVan.Dals;

namespace StuMngVan
{
    public partial class FormAddCourse : Form
    {
        public FormAddCourse()
        {
            InitializeComponent();
        }

        private void FormAddCourse_Load(object sender, EventArgs e)
        {

        }

        private void btnAdd_Click(object sender, EventArgs e)
        {
            string sName = txtName.Text;
            string sRemark = txtRemark.Text;
            Dal4Course.InsertCourse(sName,sRemark);
            MessageBox.Show("恭喜你添加课程信息成功！");
            this.Close();
        }
    }
}
